//
//  FCTIBLTableViewCell.m
//  AFNetworking
//
//  Created by WJC on 2020/3/3.
//

#import "FCTIBLTableViewCell.h"
#import "WJCDefine.h"
#import "NSString+XMGExtension.h"
#import "Masonry.h"
@interface FCTIBLTableViewCell()//<btnTypeRuleDelegate>
//@property (nonatomic,strong) FCBtnTypeRuleView *ruleView;
@property (nonatomic,assign) CGFloat cellHeight;
@end
@implementation FCTIBLTableViewCell
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier andCellHeight:(CGFloat)height{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.innerView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, WJCScreenW, 120)];
        [self.contentView addSubview:self.innerView];
        [self.innerView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.and.top.and.bottom.and.right.mas_equalTo(0);
        }];
//        self.ruleView = [[FCBtnTypeRuleView alloc] initWithFrame:CGRectMake(0, 0,WJCScreenW-16 , height?height:66)];
//        [self.innerView addSubview:self.ruleView];
//        [self.ruleView mas_makeConstraints:^(MASConstraintMaker *make) {
//            make.top.and.bottom.mas_equalTo(0);
//            make.left.mas_equalTo(8);
//            make.right.mas_equalTo(-16);
//        }];
       
    }
    return self;
}
//-(void)setContentBtn:(NSArray<FCTIBLModel *> *)contentBtn{
//    _contentBtn = contentBtn;
//    NSMutableArray *btnArr=[NSMutableArray new];
//    for (FCTIBLModel *dic in contentBtn) {
//        btnTypeModel *btnType=[[btnTypeModel alloc] init];
//        btnType.btnType = btnTimageBlabel;
//        btnType.titleFont = dic.titleFont;
//        btnType.titleTxt = dic.labelTxt;
//
//        if ([dic.image isKindOfClass:[UIImage class]]) {
//            btnType.btnImage = dic.image;
//        }else if([dic.image isKindOfClass:[NSString class]]){
//            NSString *str = dic.image;
//            if ([str isUrl]) {
//                NSData *data =[NSData dataWithContentsOfURL:[[NSURL alloc] initWithString:str]];
//                btnType.btnImage = [[UIImage alloc] initWithData:data];
//            }else{
//                btnType.btnImage = [UIImage imageNamed:str];
//            }
//        }
//        [btnArr addObject:btnType];
//    }
//    self.ruleView.btnArr = btnArr;
//    for (FCCenterButton *centerBtn in self.ruleView.btnCreatedArr) {
//        centerBtn.label.y = FCScaleWidth(centerBtn.height)*0.5+16;
//    }
//}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
